//-----------------------------------------------------------------------
// <copyright file="a_CacheStaticMenuCatService.cs" company="AACECOM">
//     Copyright (c) AACECOM. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------

using System;
using System.Collections;
using ThoiTrang.Entities;
using ThoiTrang.Data;
    
namespace ThoiTrang.Business
{   
	/// <summary>
	/// 
	/// </summary> 
    public class a_CacheStaticMenuCatService
    {
        #region a_CacheStaticMenuCat

        public static void Createa_CacheStaticMenuCat(a_CacheStaticMenuCat a_CacheStaticMenuCat)
        {            
            try
            {
                a_CacheStaticMenuCatDAO a_CacheStaticMenuCatDAO = new a_CacheStaticMenuCatDAO();
                a_CacheStaticMenuCatDAO.Createa_CacheStaticMenuCat(a_CacheStaticMenuCat);
            }            
            catch (Exception ex)
            {                
                throw ex;
            }
        }        

        public static void Updatea_CacheStaticMenuCat(a_CacheStaticMenuCat a_CacheStaticMenuCat)
        {            
            try
            {
                a_CacheStaticMenuCatDAO a_CacheStaticMenuCatDAO = new a_CacheStaticMenuCatDAO();
                a_CacheStaticMenuCatDAO.Updatea_CacheStaticMenuCat(a_CacheStaticMenuCat);
            }           
            catch (Exception ex)
            {
                throw ex;
            }
        }        

        public static void Deletea_CacheStaticMenuCat(int mid)
        {            
            try
            {
                a_CacheStaticMenuCatDAO a_CacheStaticMenuCatDAO = new a_CacheStaticMenuCatDAO();
                a_CacheStaticMenuCatDAO.Deletea_CacheStaticMenuCat(mid);
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }
        
        public static a_CacheStaticMenuCat Geta_CacheStaticMenuCat(int mid)
        {            
            try
            {
                a_CacheStaticMenuCatDAO a_CacheStaticMenuCatDAO = new a_CacheStaticMenuCatDAO();
                return a_CacheStaticMenuCatDAO.Geta_CacheStaticMenuCat(mid);                
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }                

        public static a_CacheStaticMenuCatCollection Geta_CacheStaticMenuCatList(a_CacheStaticMenuCatColumns orderBy, OrderDirection orderDirection)
        {            
            try
            {
                a_CacheStaticMenuCatDAO a_CacheStaticMenuCatDAO = new a_CacheStaticMenuCatDAO();
                return a_CacheStaticMenuCatDAO.Geta_CacheStaticMenuCatList(orderBy, orderDirection);
            }            
            catch (Exception ex)
            {
               throw ex;
            }
        }        

        public static a_CacheStaticMenuCatCollection Geta_CacheStaticMenuCatList(a_CacheStaticMenuCatColumns orderBy, OrderDirection orderDirection, int page, int pageSize, out int totalRecords)
        {            
            try
            {
                a_CacheStaticMenuCatDAO a_CacheStaticMenuCatDAO = new a_CacheStaticMenuCatDAO();
                return a_CacheStaticMenuCatDAO.Geta_CacheStaticMenuCatList(orderBy, orderDirection, page, pageSize, out totalRecords);
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }        

        #endregion
    }
}